public class Bl {

//    array.length用于求数组的长度
    public static void main(String[] args) {
        int []array = {1,2,3,4,5,6};
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
}
